package com.dys.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @className: com.dys.servlet.Servlet01
 * @description: com.dys.servlet
 * @author: pine cone
 * @version: v1.0.0
 * @createTime: 2024/09/24 22:18
 */
public class Servlet01 extends HttpServlet {
    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        System.out.println("执行Servlet01的service方法......");
        resp.setContentType("text/html;charset=utf-8");
        resp.getWriter().println("Servlet01响应的数据");
    }
}
